-
Notifications
You must be signed in to change notification settings - Fork 123
Implement SOCKS proxy functionality #375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, looking good! Some notes in the diff.
@swift-server-bot test this please |
Co-authored-by: Cory Benfield <[email protected]>
…ent into de/socks-client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor comments but looks generally OK to me.
public struct Authorization: Hashable { | ||
private enum Scheme: Hashable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting equatable conformance on the internal Proxy Type enum.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, a few cleanups needed here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, this LGTM. Let's get a swift-nio-extras release out the door and we can move forward here.
@swift-server-bot test this please |
@@ -22,6 +22,7 @@ import NIOConcurrencyHelpers | |||
import NIOFoundationCompat | |||
import NIOHTTP1 | |||
import NIOHTTPCompression | |||
import NIOSOCKS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need this here :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Looks awesome!
Add a new Proxy type to enable a
HTTPClient
to send requests via a SOCKSv5 Proxy server.